package com.punch.common.vo.course;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * CourseDTO-课程信息 表单
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/7/14 10:51
 */
@Data
public class CourseTeachingVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long teachingId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long courseId;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 教师名称
     */
    private String teacherName;


    /**
     * 学校名称
     */
    private String schoolName;


    /**
     * 状态 0-申请中，1-已完成 ，2-已取消
     */
    private Integer status;


    @ApiModelProperty(value = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
